﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ShowProto : MonoBehaviour
{
    //public static GameObject CurrntCardInHandGameObject;
    private bool ShowBool;
    // Use this for initialization
    void Start () {
        transform.GetComponent<Button>().onClick.AddListener(ShowProtos);
        ShowBool = false;
        transform.GetChild(1).gameObject.SetActive(false);
    }
    private void ShowProtos()
    {
        ShowBool = !ShowBool;
        transform.GetChild(1).gameObject.SetActive(ShowBool);
        if (ShowBool)
        {
            Debug.Log("CurrntCardInHandGameObject in");
            //CurrntCardInHandGameObject = gameObject;
        }
        else
        {
            Debug.Log("CurrntCardInHandGameObject out");
            //CurrntCardInHandGameObject = null;
        }
    }
}
